package com.kefu.robot.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Transient;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;


@Data
@TableName(value="robot_doc_comment")
@ApiModel(description="词条点评")
public class RobotDocComment implements Serializable {
    /**
     * 主键
     */
    @TableId(value="id")
    @NotEmpty
    @ApiModelProperty(name = "id", value = "主键")
    private String id;

    /**
     * 租户
     */
    @TableField(value = "tenant_id")
    @ApiModelProperty(name = "tenantId", value = "租户")
    private String tenantId;

    /**
     * 机器人
     */
    @TableField(value = "robot_no")
    @ApiModelProperty(name = "robotNo", value = "机器人")
    private Integer robotNo;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(name = "createTime", value = "创建时间")
    private Long createTime;

    /**
     * 会话id
     */
    @TableField(value = "session_id")
    @ApiModelProperty(name = "sessionId", value = "会话id")
    private String sessionId;

    /**
     * 消息id
     */
    @TableField(value = "msg_id")
    @ApiModelProperty(name = "msgId", value = "消息id")
    private String msgId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(name = "userId", value = "用户id")
    private String userId;

    /**
     * 词条id
     */
    @TableField(value = "doc_id")
    @ApiModelProperty(name = "docId", value = "词条id")
    private String docId;

    /**
     * 点赞状态
     */
    @TableField(value = "is_useful")
    @ApiModelProperty(name = "isUseful", value = "点赞状态")
    private Integer isUseful;

    /**
     * 点赞次数
     */
    @Transient
    @TableField(exist=false)
    private Integer count;
    private static final long serialVersionUID = 1L;

}